import request from '@/utils/request'

// 获取专题列表
export const getSpecialListData = params => {
  return request({
    url: '/api/topic/list',
    params
  })
}

// 获取专题详情
export const getSpecialDetailtData = params => {
  return request({
    url: '/api/topic/detail',
    params
  })
}

// 获取精选留言
export const getSelectedCommentListData = params => {
  return request({
    url: '/api/comment/list',
    params
  })
}

// 发布留言
export const addComment = data => {
  return request({
    url: '/api/comment/post',
    method: 'POST',
    data,
    // headers: {
    //   'X-Nideshop-Token': "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMTksImlhdCI6MTY0NjgyMzU3M30.7lAWChW7e6SRZK5_PUGmDUqU3Eb4OIC7FRSxjqlDNQU"
    // }
  })
}